package com.sanshi.project.codegen.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author project
 * @date 2023/3/12
 * <p>
 * 通用字段的填充策略和显示策略
 */
@Getter
@AllArgsConstructor
public enum CommonColumnFiledEnum {

	/**
	 * create_by 字段
	 */
	create_by("0", "0", AutoFillEnum.INSERT.name(), 100, "0", "", "", ""),

	/**
	 * create_time 字段
	 */
	create_time("0", "0", AutoFillEnum.INSERT.name(), 101, "0", "", "", ""),
	/**
	 * update_by 字段
	 */
	update_by("0", "0", AutoFillEnum.INSERT_UPDATE.name(), 102, "0", "", "", ""),
	/**
	 * update_time 字段
	 */
	update_time("0", "0", AutoFillEnum.INSERT_UPDATE.name(), 103, "0", "", "", ""),
	/**
	 * del_flag 字段
	 */
	del_flag("0", "0", AutoFillEnum.DEFAULT.name(), 104, "0", "", "", ""),
	/**
	 * tenant_id 字段
	 */
	tenant_id("0", "0", AutoFillEnum.DEFAULT.name(), 105, "0", "", "", "");

	/**
	 * 表单是否默认显示 1/0
	 */
	private String formItem;

	/**
	 * 表格是否默认显示 1/0
	 */
	private String gridItem;

	/**
	 * 自动填充策略
	 */
	private String autoFill;

	/**
	 * 排序值
	 */
	private Integer sort;

	/**
	 * Excel是否导入导出 1/0
	 */
	private String excelItem;

	/**
	 * 关联表字段编码
	 */
	private String assoTableCode;

	/**
	 * 关联表字段名称
	 */
	private String assoTableText;

	/**
	 * 关联表表名
	 */
	private String assoTable;

}
